package com.ds.msg.mqtt.p2p;

import com.ds.annotation.MethodChinaName;
import com.ds.config.ResultModel;
import com.ds.msg.Msg;
import com.ds.msg.TopicMsg;
import org.springframework.web.bind.annotation.ResponseBody;

public interface P2PService {

    @MethodChinaName(cname = "私信")
    @ResponseBody
    public ResultModel<Msg> sendMsg2Person(String account, String body);

    @MethodChinaName(cname = "广播消息")
    @ResponseBody
    public ResultModel<TopicMsg> sendTopic(String sessionId, String topic, String msg);

    @MethodChinaName(cname = "指定客户消息")
    @ResponseBody
    public ResultModel<Msg> sendMsg2Client(String sessionId, String body);

}
